1. /* lastchar.cpp by K. Tsuru*/
  2. #include <string.h>
  3. /***************************
  4. It returns the ponter of last character of the string "s".
  5. ****************************/
  6. char* LastChar(const char* s){
  7. char* p;
  8. if(*s == '\0') return NULL; //empty
  9. p = strchr(s, 0); //"p" points last '\0' of "s".
  10. return (p-1);
  11. }

lastchar.cpp : last modifiled at 2016/01/05 11:22:06(314 bytes)
created at 2016/04/11 11:17:20
The creation time of this html file is 2017/10/07 10:54:15 (Sat Oct 07 10:54:15 2017).